set(TARGET_NAME GnssLogsGlobalTest)

include_directories("../")
find_package(Boost REQUIRED)
find_package(GTest CONFIG REQUIRED)

file(GLOB HEADERS "*.h")
file(GLOB SOURCES "*.cpp")
file(GLOB PRIVATES "Private/*.h" "Private/*.cpp")
file(GLOB TESTLOG "testlog.txt")

add_compile_definitions(TEST_LOG_FILE="${TESTLOG}")

source_group("Headers" FILES ${HEADERS})
source_group("Sources" FILES ${SOURCES})
source_group("Private" FILES ${PRIVATES})

add_executable(${TARGET_NAME} ${HEADERS} ${SOURCES} ${PRIVATES})

target_link_libraries(${TARGET_NAME} PUBLIC GnssLogs PRIVATE Boost::boost GTest::gtest)
install(TARGETS ${TARGET_NAME} RUNTIME DESTINATION ${INSTALL_BINDIR}/${CMAKE_BUILD_TYPE})